package com.baizhi.service;


import com.baizhi.entity.Category;

import java.util.List;
import java.util.Map;

public interface CategoryService {

    //查类别
    List<Category> queryByLevels(int levels);

    //根据一级类别查二级类别
    List<Category> queryByParendId(String id);

    //删除
    Map<String,Object> delete(String id);

    //添加类别
    void save(Category category);

    //修改二级类别
    void updateCategory(Category category);

}
